package com.haixin.test.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 请修改注释
 *
 * @author zhangjianshe
 * @date 2021.07.18
 */
public class User {
    private long id;
    private String nickName;
    private String mobile;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
    private String role;

    public User(long id, String nickName, String mobile, String password, String role) {
        this.id = id;
        this.nickName = nickName;
        this.mobile = mobile;
        this.password = password;
        this.role = role;
    }

    public User() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
